<?php
if (!$is_editor)
{
	echo "<div style='text-align:left;'>" .
		str_replace("\r", "<br />", str_replace("\n", "<br />", str_replace("\r\n", "<br />", $model->$name))) .
		"</div>";
}else{
	echo CHtml::activeTextarea($model, "[".$model->index."]$name", array('cols' => 20, 'rows' => 5, 'style'=>'text-align:left; width: 99%;'));
}
?>
